//
//  PicturePurchaseViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/14.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "PicturePurchaseViewController.h"
#import "PictirePurchaseViewModel.h"
#import "ProductNameViewController.h"

@interface PicturePurchaseViewController ()<PiceturePurDelegate>
@property (nonatomic,strong) PictirePurchaseViewModel * pictureViewModel;
@end

@implementation PicturePurchaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"图片求购";
    self.pictureViewModel = [[PictirePurchaseViewModel alloc] initWithViewToViewModel:self.tableView theSuperView:self.view];
    self.pictureViewModel.delegate = self;
}

#pragma mark -- PiceturePurDelegate
-(void)selectProductName{
    ProductNameViewController * productVC = [ProductNameViewController new];
    productVC.publish_Type = PublishSelectList_GoodsName;
    productVC.Block_PubModel = ^(PublishListModel_Data * _Nonnull p_dataModel) {
        
    };
    [self.navigationController pushViewController:productVC animated:YES];
}

@end
